home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
public
/
fax
/
src
/
port
/
svr4
/
defs
next >
Wrap
Text File
|
1994-08-01
|
10KB
|
327 lines
# $Header: /usr/people/sam/fax/port/svr4/RCS/defs,v 1.21 1994/03/29 01:07:30 sam Rel $
#
# FlexFAX Facsimile Software
#
# Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 Sam Leffler
# Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc.
#
# Permission to use, copy, modify, distribute, and sell this software and
# its documentation for any purpose is hereby granted without fee, provided
# that (i) the above copyright notices and this permission notice appear in
# all copies of the software and related documentation, and (ii) the names of
# Sam Leffler and Silicon Graphics may not be used in any advertising or
# publicity relating to the software without the specific, prior written
# permission of Sam Leffler and Silicon Graphics.
#
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
#
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
# OF THIS SOFTWARE.
#
#
# These definitions are for building the software on a Intel 386 PC
# under System V Release 4 using gcc 2.3.3 and libg++2.3.
#
# TARGET: svr4
# COMPILER: gcc
#
SHELL = /bin/sh
DESTDIR = .
NULL =
MAKEFILE= Makefile
#
# Location of auxiliary stuff needed for SVR4
#
PORT = ${DEPTH}/port/svr4
GENERIC = ${DEPTH}/port/generic
#
# Basic tools used in the build process.
#
C++ = ${TOOLROOT}/usr/local/bin/gcc
CC = ${TOOLROOT}/usr/local/bin/gcc
NAWK = ${TOOLROOT}/usr/bin/nawk
INSTALL = sh ${PORT}/install.sh
MKDEPEND= ${GENERIC}/mkdepend
AR = ${TOOLROOT}/usr/ccs/bin/ar
RANLIB = ${TOOLROOT}/bin/echo
SED = ${TOOLROOT}/bin/sed
#
# AR options for creating/updating an archive
#
AROPTS= crs
#
# Special options for lptops compilation (yech).
#
#
# We wants System V-style getty support.
#
SYSGETTY=GettySysV.c++
#
# and we want System V-style UUCP lock support.
#
UUCP_LOCKDIR=/var/spool/locks
UUCP_LOCKTYPE=0
UUCP_LOCKMODE=0444
#
# Location of Adobe Font Metrics for lptops.
#
AFMDIR=/usr/local/lib/ghostscript/fonts/
#
# PostScript imager for server. PSPACKAGE is one of:
#
# dps for Display Postscript
# gs for Ghostscript
#
# and PSIMAGER is the pathname of the binary executable.
#
PSPACKAGE=gs
PSIMAGER=/usr/local/bin/gs
#
# Mail program for sending notification messages.
#
SENDMAIL=/usr/ucblib/sendmail
#
# Default optimizer and prototype options
#
# -g is broken for SVR4 on g++ 2.3.3
# -Qn is required to avoid assembler coredumps on certain files
#
OPTIMIZER=-O -Qn
PROTOTYPES=
CVERSION= -D__ANSI_CPP__
C++FILE=-x c++
# default definitions for programs--overide them as desired
LIBS= ${LIBUTIL} ${LIBTIFF} ${LIBIV} ${LIBPORT}
LLDLIBS=${LIBS} ${MACHDEPLIBS}
#
# Override this definition to eliminate shared library use.
#
SHDLIBC=
#
# Libraries that may vary from machine to machine (especially if
# you use GNU GCC instead of AT&T C++).
#
# -lucb follows -lc only for strcasecmp strncasecmp mkstemp
# -lelf required on Solaris 2; doesn't hurt to keep on other flavors
MACHDEPLIBS=-lg++ -lsocket -lnsl -lc -L/usr/ucblib -lucb -lelf
#
# You must have v3.0 or newer of the TIFF library. If
# you already have it installed, or if you have version 3.0
# or newer of InterViews installed (which includes the TIFF
# library), you can point these to those places. Otherwise,
# you can just use the code provided here.
#
TIFF= ${DEPTH}/libtiff
LIBTIFF=${TIFF}/libtiff.a
#
# If you already have InterViews 3.0 or newer installed,
# define these to be something like:
#
#IV= /usr/include
#LIBIV= /usr/lib/libIV.a
#
# Otherwise you can just use the subset of classes used by
# the fax software and collected here in a hacked-up library.
#
IV= ${DEPTH}/iv
LIBIV= ${IV}/libivhack.a
# random utility functions and classes
UTIL= ${DEPTH}/util
LIBUTIL=${UTIL}/libfaxutil.a
LIBPORT=${PORT}/libport.a
#
# Uid&Gid for installing server stuff. Note that the server process
# proper (/usr/etc/faxd or similar) must either run setuid root or
# setuid uucp (i.e. fax and uucp must have the same uid). This is
# so that the fax server can participate in the UUCP locking scheme
# and thereby implement tty line sharing (i.e. share the same line
# and modem for both fax and data).
#
FAXUSER=uucp
FAXGROUP=uucp
#
# Directories where stuff gets placed:
#
# BIN client-directed applications
# LIBDATA client-directed application library data files
# LIBEXEC client-directed application library executables
# SPOOL spooling area for servers
# DOC non-manual documentation
# USRETC place for servers (faxd & faxd.recv)
#
BIN= /usr/local/bin
LIBDATA=/usr/local/lib/fax
LIBEXEC=/usr/local/lib/fax
DOC= /usr/local/doc/flexfax
USRETC= /usr/local/sbin
SPOOL= /var/spool/fax
#
# Manual-related controls:
#
# MAN head of manual tree
# MANAPP subdirectory for stuff in BIN
# MANSYS subdirectory for server & server-related apps
# MANFILES subdirectory for file format info
# PAGEDIRT temp files to remove on clean/clobber
#
MAN = /usr/local/man
MANAPPS = man1
MANSYS = man1
MANFILES= man4
NROFF = /usr/ucb/nroff
COMPRESS= compress
MANCAPP = ${CLIENTAPPS}
MANCFILE= ${CLIENTFILES}
MANSAPP = ${SERVERAPPS}
MANSFILE= ${SERVERFILES}
PAGEDIRT=
# programs used during installation
ECHO= /bin/echo
FTR= /usr/sbin/ftr
GREP= /bin/grep
RM= /bin/rm
KILLALL=/etc/killall
PWD= /bin/pwd
CHROOT= /etc/chroot
#
# Definitions used by common rules.
#
COMMONRULES=${DEPTH}/rules
COMMONTARGS= clobber clean rmtargets depend incdepend
#
# C compiler flags are composed of variable (set on the command line),
# local (defined in the makefile), and global (defined in this file)
# parts, in that order. This ordering is used so that variable or
# locally specified include directories are searched before the globally
# specified ones.
#
CFLAGS= ${CVERSION} ${VCFLAGS} ${LCFLAGS} ${GCFLAGS}
VCFLAGS=${VCDEFS} ${VCINCS} ${VCOPTS}
LCFLAGS=${LCDEFS} ${LCINCS} ${LCOPTS}
GCFLAGS=${GCDEFS} ${GCINCS} ${GCOPTS}
COPTS= ${VCOPTS} ${LCOPTS} ${GCOPTS}
CDEFS= ${VCDEFS} ${LCDEFS} ${GCDEFS}
CINCS= ${VCINCS} ${LCINCS} ${GCINCS}
GCOPTS=${OPTIMIZER} ${PROTOTYPES}
GCDEFS=-Dsvr4
GCINCS= -I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${TIFF}
#
# C++ flags are decomposed using the same hierarchy as C flags.
#
C++FLAGS=${CVERSION} ${VC++FLAGS} ${LC++FLAGS} ${GC++FLAGS}
VC++FLAGS=${VC++DEFS} ${VC++INCS} ${VC++OPTS}
LC++FLAGS=${LC++DEFS} ${LC++INCS} ${LC++OPTS}
GC++FLAGS=${GC++DEFS} ${GC++INCS} ${GC++OPTS}
C++OPTS=${VC++OPTS} ${LC++OPTS} ${GC++OPTS}
C++DEFS=${VC++DEFS} ${LC++DEFS} ${GC++DEFS}
C++INCS=${VC++INCS} ${LC++INCS} ${GC++INCS}
GC++OPTS=${OPTIMIZER}
GC++INCS=-I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${IV} -I${TIFF}
GC++DEFS=-Dsvr4
#
# Loader flags, composed of library (-l's) and option parts, with
# the libraries appearing last. Both of these are divided into variable,
# local, and global parts. The composition of LDFLAGS is done in the
# other "direction" from CFLAGS so that all the -L's, that are part of
# LDOPTS, appear before any of the -l's, which are part of LDLIBS.
# Another benefit of segregating the libraries from the remaining of the
# loader options is that the libraries alone can easily be given to
# another program, e.g., lint.
#
# Notes:
# - If a program should not be linked with the shared version of libc,
# then its make file should override the setting of SHDLIBC with a
# line such as "SHDLIBC=".
#
LDFLAGS=${LDOPTS} ${LDLIBS}
LDOPTS=${VLDOPTS} ${LLDOPTS} ${GLDOPTS}
LDLIBS=${VLDLIBS} ${LLDLIBS} ${GLDLIBS}
GLDOPTS=
GLDLIBS=${SHDLIBC}
#
# Convenient command macros that include the flags macros.
#
C++F= ${C++} ${C++FLAGS}
CCF= ${CC} ${CFLAGS}
#
# Shell script for generating make dependencies. MKDEPEND is a shorthand
# for the tool's absolute pathname. MKDEPENDC adds MKDEPCFLAGS and the -c
# mkdepend option to this. The other language's mkdepend variables try to
# include their language's name in the variable names. Unfortunately, a
# lot of makefiles already use the nondescript LMKDEPFLAGS for C language
# mkdepend options, so we initialize LMKDEPCFLAGS with ${LMKDEPFLAGS}.
#
MKDEPENDC++ =${MKDEPEND} ${MKDEPC++FLAGS} -c "${C++F} ${C++FILE} -M"
MKDEPENDC =${MKDEPEND} ${MKDEPCFLAGS} -c "${CCF} -M"
MKDEPC++FLAGS =${VMKDEPC++FLAGS} ${LMKDEPC++FLAGS} ${GMKDEPC++FLAGS}
MKDEPCFLAGS =${VMKDEPCFLAGS} ${LMKDEPCFLAGS} ${GMKDEPCFLAGS}
LMKDEPCFLAGS =${LMKDEPFLAGS}
GMKDEPFLAGS =-e 's@ ${INCLDIR}/@ $${INCLDIR}/@' -e 's@ ${ROOT}/@ $${ROOT}/@'
GMKDEPC++FLAGS =${GMKDEPFLAGS} -s C++ -e 's@\.c++\.o *: @\.o: @'
GMKDEPCFLAGS =${GMKDEPFLAGS}
#
# Macro to add to LMKDEPCFLAGS or LMKDEPC++FLAGS if your makefile builds
# single-source programs using null suffix rules (e.g., .c:}. This option
# works for both C and C++ make depend.
#
NULLSUFFIX_MKDEPFLAG=-e 's@\.o+*:@:@'
#
# MKDEPFILE is the name of the dependency database, included by rules.
#
MKDEPFILE=Makedepend
#
# CDEPFILES lists all C or cc-compiled source files that depend on header
# files computable by ${MKDEPENDC}. C++DEPFILES lists all C++ files having
# dependencies computable by ${MKDEPENDC++}.
#
C++DEPFILES=${C++FILES}
CDEPFILES=${CFILES}
DEPFILES=${C++DEPFILES} ${CDEPFILES}
#
# Directory shorthands, mainly for make depend (see GMKDEPFLAGS above).
#
INCLDIR =${ROOT}/usr/include